<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>所有学生信息</title>
    <link rel="stylesheet" href="./students.css">
</head>

<body>
    <div class="nav">
        <h1>所有学生信息如下:</h1>
        <table>
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>班级</th>
            </tr>


            {% for student in students %}
            <tr>
                <td>{{student.studentId}}</td>
                <td>{{student.studentName}}</td>
                <td>{{student.studentAge}}</td>
                <td>{{student.classRoom}}</td>
            </tr>
            {% endfor %}
        </table>
    </div>
</body>

</html>